home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / ppp.postrm < prev    next >
Text File  |  2008-10-15  |  820b  |  43 lines

  1. #!/bin/sh -e
  2.  
  3. delete_etc_files() {
  4.     rm -f /etc/ppp/pap-secrets /etc/ppp/chap-secrets /etc/ppp/resolv.conf \
  5.     /etc/ppp/peers/provider /etc/chatscripts/provider
  6.     rmdir --ignore-fail-on-non-empty /etc/ppp/peers/ /etc/ppp/ \
  7.     /etc/ppp/ip-up.d/ /etc/ppp/ip-down.d/ \
  8.     /etc/chatscripts/
  9. }
  10.  
  11. delete_var_files() {
  12.     rm -f /var/log/ppp.log /var/log/ppp-connect-errors \
  13.     /var/log/ppp-ipupdown.log
  14. }
  15.  
  16. case "$1" in
  17.     remove)
  18.     ;;
  19.  
  20.     purge)
  21.     delete_etc_files
  22.     delete_var_files
  23.     ;;
  24.  
  25.     upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  26.     ;;
  27.  
  28.     *)
  29.     echo "postrm called with unknown argument '$1'" >&2
  30.     exit 1
  31.     ;;
  32. esac
  33.  
  34. # Automatically added by dh_installinit
  35. if [ "$1" = "purge" ] ; then
  36.     update-rc.d pppd-dns remove >/dev/null || exit $?
  37. fi
  38. # End automatically added section
  39.  
  40.  
  41. exit 0
  42.  
  43.